package de.slothsoft.wasbinich.tools;

import java.util.Locale;

import de.slothsoft.wasbinich.core.FullPicture;
import de.slothsoft.wasbinich.core.WasBinIch;
import de.slothsoft.wasbinich.core.database.Database;
import de.slothsoft.wasbinich.core.database.ManagerBean;
import de.slothsoft.wasbinich.swingclient.database.SwingWebserviceDatabase;

public class ConnectionTester {

    public static void main(String[] args) {
	WasBinIch.DEBUG = false;
	Database.initInstance(new SwingWebserviceDatabase());
	ManagerBean otherBean = Database.getInstance().getManagerBean();

	for (FullPicture picture : otherBean.getPictures()) {
	    System.out.println(picture.getCorrectAnswers(Locale.GERMAN));
	}
	System.out.println("Finished.");
    }
}
